<template>
  <div class="container">
     <div class="header">
        <div class="header-1">
            <div>
                <img :src="titlePic" alt="">
            </div>
            <div>
                <div>{{mainTitle}}</div>
                <div>{{subTitle}}</div>
            </div>
        </div>
        <div>
            <span>查看更多</span>
            <span>&gt;</span>
        </div>
     </div>
     <div class="main">
        <slot></slot>
     </div>
  </div>
</template>

<script>
export default {
    props:{
        titlePic:{
            type:String,
            default:'https://woniuimage.oss-cn-hangzhou.aliyuncs.com/woniuimage/woniuxy/online/learnbook/major-test-java.svg'
        },
        mainTitle:String,
        subTitle:String
    }
}
</script>

<style lang="scss">
    .container{
      .header{
        display: flex;
        justify-content: space-between;
        .header-1{
            display: flex;
            img{
                width: 60px;
            }
        }
      }
    }
    
</style>